package demo1;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
//        binaryTree.size(root);
//        System.out.println(binaryTree.nodeSize);
//        int ret = binaryTree.size2(root);
//        System.out.println(ret);
//          binaryTree.getLeafNodeCount1(root);
//        System.out.println(binaryTree.leafSize);
//        int ret = binaryTree.getLeafNodeCount2(root);
//        System.out.println(ret);
//        int height = binaryTree.getHeight(root);
//        System.out.println(height);
//        BinaryTree.TreeNode node = binaryTree.find(root,'B');
//        System.out.println(node.val);
        List<Character> list = binaryTree.inorderTraversal(root);
        System.out.println(list);
    }
}
